import request from '@/utils/request'

// 获取期刊列表
export function getAllJournal (data) {
  return request({
    url: 'journal/getAll',
    method: 'get',
    params: data
  })
}

// 删除期刊
export function delJournal (data) {
  return request({
    url: 'journal/deleteJournal',
    method: 'post',
    data: data
  })
}

// 添加期刊
export function addJournal (data) {
  return request({
    url: 'journal/addJournal',
    method: 'post',
    data: data
  })
}

// 更新期刊
export function updateJournal (data) {
  return request({
    url: 'journal/updateJournal',
    method: 'post',
    data: data
  })
}

// 根据id查期刊
export function queryJournal (data) {
  return request({
    url: 'journal/queryById',
    method: 'get',
    params: data
  })
}
